const allList = [
  {
    name: "食品",
    count: 0,
    src: "https://img2.baidu.com/it/u=2238164020,3913733612&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=332",
    price: 35,
    check: false,
    title: "披萨",
    number: 1,
    catflg: false,
    id: 1,
  },
  {
    name: "家居",
    count: 0,
    src: "https://img2.baidu.com/it/u=1979004164,3222184810&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800",
    price: 1995,
    check: false,
    title: "沙发",
    number: 1,
    catflg: false,
    id: 2,
  },
  {
    name: "家电",
    count: 0,
    src: "https://img1.baidu.com/it/u=1520426647,2036976785&fm=253&fmt=auto&app=120&f=PNG?w=798&h=500",
    price: 99999,
    check: false,
    title: "家电一条龙",
    number: 1,
    catflg: false,
    id: 3,
  },
  {
    name: "食品",
    count: 0,
    src: "https://img1.baidu.com/it/u=140626403,604292920&fm=253&fmt=auto&app=138&f=JPEG?w=747&h=500",
    price: 35,
    check: false,
    title: "大虾",
    number: 1,
    catflg: false,
    id: 4,
  },
  {
    name: "生鲜",
    count: 0,
    src: "https://img1.baidu.com/it/u=4196653860,862293846&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
    price: 20,
    check: false,
    title: "新鲜果蔬",
    number: 1,
    catflg: false,
    id: 5,
  },
  {
    name: "食品",
    count: 0,
    src: "https://img1.baidu.com/it/u=1980583684,387891804&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=401",
    price: 35,
    check: false,
    title: "烧鸡",
    number: 1,
    catflg: false,
    id: 6,
  },
  {
    name: "电脑",
    count: 0,
    src: "https:img12.360buyimg.com/n7/jfs/t1/189287/16/32063/37285/63d4e6a3Fdba9cdff/704366f543d47d82.jpg",
    price: 2999,
    check: false,
    title: "小米智能电脑",
    number: 1,
    catflg: false,
    id: 7,
  },
  {
    name: "饰品",
    count: 0,
    src: "https://img1.baidu.com/it/u=3488593211,3431243757&fm=253&fmt=auto&app=138&f=JPEG?w=632&h=500",
    price: 1998,
    check: false,
    title: "冰晶耳环",
    number: 1,
    catflg: false,
    id: 8,
  },
  {
    name: "手机",
    count: 0,
    src: "https://img10.360buyimg.com/n7/jfs/t1/7169/20/17985/33829/63241b3aE7dcfd261/efb35507276509cd.jpg",
    price: 2399,
    check: false,
    title: "小米K50",
    number: 1,
    catflg: false,
    id: 9,
  },
  {
    name: "服装",
    count: 0,
    src: "https://img1.baidu.com/it/u=3467554775,439747421&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889",
    price: 2000,
    check: false,
    title: "走秀服饰",
    number: 1,
    catflg: false,
    id: 10,
  },
  {
    name: "服装",
    count: 0,
    src: "https://img13.360buyimg.com/babel/s320x320_jfs/t1/104228/28/35451/85030/63d89638F4a18a4d2/0e3c5d2325da61a4.jpg!cc_320x320.webp",
    price: 2000,
    check: false,
    title: "时尚风格简答",
    number: 1,
    catflg: false,
    id: 11,
  },
  {
    name: "手机",
    count: 0,
    src: "https://img10.360buyimg.com/n7/jfs/t1/7169/20/17985/33829/63241b3aE7dcfd261/efb35507276509cd.jpg",
    price: 1999,
    check: false,
    title: "小米K50",
    number: 1,
    catflg: false,
    id: 12,
  },
  {
    name: "母婴",
    count: 0,
    src: "https://img2.baidu.com/it/u=3144078023,3530800059&fm=253&fmt=auto&app=138&f=JPEG?w=428&h=371",
    price: 199,
    check: false,
    title: "三鹿奶粉",
    number: 1,
    catflg: false,
    id: 13,
  },
  {
    name: "电脑",
    count: 0,
    src: "https:img12.360buyimg.com/n7/jfs/t1/189287/16/32063/37285/63d4e6a3Fdba9cdff/704366f543d47d82.jpg",
    price: 4999,
    check: false,
    title: "小米智能电脑",
    number: 1,
    catflg: false,
    id: 14,
  },
  {
    name: "手机",
    count: 0,
    src: "https://img10.360buyimg.com/n7/jfs/t1/7169/20/17985/33829/63241b3aE7dcfd261/efb35507276509cd.jpg",
    price: 3999,
    check: false,
    title: "小米K50",
    number: 1,
    catflg: false,
    id: 15,
  },
  {
    name: "数码",
    count: 0,
    src: "https://img1.baidu.com/it/u=1718042833,1349719831&fm=253&fmt=auto&app=138&f=JPEG?w=638&h=480",
    price: 3999,
    check: false,
    title: "数码相机",
    number: 1,
    catflg: false,
    id: 16,
  },
  {
    name: "电脑",
    count: 0,
    src: "https:img12.360buyimg.com/n7/jfs/t1/189287/16/32063/37285/63d4e6a3Fdba9cdff/704366f543d47d82.jpg",
    price: 6999,
    check: false,
    title: "小米智能电脑",
    number: 1,
    catflg: false,
    id: 17,
  },
  {
    name: "电视",
    count: 0,
    src: "https://img12.360buyimg.com/n7/jfs/t1/220142/10/25219/75048/63d9087fFa8ad12df/d667f67ff693a9c0.jpg",
    price: 1999,
    check: false,
    title: "小米智能电视",
    number: 1,
    catflg: false,
    id: 18,
  },
  {
    title: "千图节能电饭煲",
    number: 1,
    catflg: false,
    check: false,
    id: 19,
    name: "千图节能电饭煲",
    price: 75.6,
    sell: 120,
    src: "https://img1.baidu.com/it/u=4265236836,2219866717&fm=253&fmt=auto&app=138&f=JPEG?w=505&h=500",
  },
  {
    title: "小米智能冰箱",
    number: 1,
    catflg: false,
    check: false,
    id: 20,
    name: "小米智能冰箱",
    price: 998,
    sell: 2814,
    src: "https://img12.360buyimg.com/n12/s400x400_jfs/t1/184383/32/12989/139083/60e7bba4E6de5c2d6/7a1e1e0f39ea585a.jpg",
  },
  {
    title: "男士专用洗面奶",
    number: 1,
    catflg: false,
    check: false,
    id: 21,
    name: "男士专用洗面奶",
    price: 98,
    sell: 398,
    src: "https://img0.baidu.com/it/u=2103873463,2049689572&fm=253&fmt=auto&app=120&f=JPEG?w=630&h=500",
  },
  {
    title: "钓鱼台",
    number: 1,
    catflg: false,
    check: false,
    id: 22,
    name: "钓鱼台",
    price: 1998,
    sell: 3999,
    src: "https://img0.baidu.com/it/u=3614735184,2167599742&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=643",
  },
];

const getTypes = () => {
  let temp:any = [];
  allList.forEach((item) => {
    if (!temp.includes(item.name)) {
      temp.push(item.name);
    }
  });

  return temp
};

export default {
    allList,
    types: getTypes()
};
